#ifndef __MOD_DETECTOR_H__
#define __MOD_DETECTOR_H__


struct module_info{
    const char name[MODULE_NAME_LEN];
    struct module *mod;
    bool live;
    unsigned long module_size;
    raw_spinlock_t lock;
};

struct module_info *lookup_module_by_text_address(unsigned long addr);

int module_detector_init(void);
int module_detector_deinit(void);
#endif
